<%@ page import="java.util.Enumeration" %>
<html>
<head>
	<title>Une erreur s'est produite</title>
</head>
<body>
<p>&nbsp;</p>
  <table border="0" align="center" cellspacing="0" cellpadding="0" width="75%">
    <tr>
      <th bgcolor="#3366CC" colspan="3"><font color="white"><b>Une erreur s'est produite</b></font></th>
    </tr>
    <tr>
      <td align="left" valign="top" width="5%">&nbsp;</td>
      <td align="left" valign="top">&nbsp;</td>
      <td align="left" valign="top">&nbsp;</td>
    </tr>
    <tr>
      <td align="left" valign="top" width="5%">&nbsp;</td>
      <td align="left" valign="top" colspan="2">Parameters :&nbsp;</td>
    </tr>
<%
	Enumeration enumerate = request.getParameterNames();
	while (enumerate.hasMoreElements())
	{
		String key = (String) enumerate.nextElement();
		String value = request.getParameter(key);
%>
    <tr>
      <td align="left" valign="top">&nbsp;</td>
      <td align="left" valign="top"><b><%= key %></b></td>
      <td align="left" valign="top"><%= value %></td>
    </tr>
<%
	}
%>
    <tr>
      <td align="left" valign="top" width="5%">&nbsp;</td>
      <td align="left" valign="top">&nbsp;</td>
      <td align="left" valign="top">&nbsp;</td>
    </tr>
    <tr>
      <td align="left" valign="top" width="5%">&nbsp;</td>
      <td align="left" valign="top" colspan="2">Attributes :&nbsp;</td>
    </tr>
<%
	enumerate = request.getAttributeNames();
	while (enumerate.hasMoreElements())
	{
		String key = (String) enumerate.nextElement();
		Object value = request.getAttribute(key);
%>
    <tr>
      <td align="left" valign="top">&nbsp;</td>
      <td align="left" valign="top"><b><%= key %></b></td>
      <td align="left" valign="top"><%= value != null? value.toString() : "" %></td>
    </tr>
<%
	}
%>
    <tr>
      <td align="left" valign="top" width="5%">&nbsp;</td>
      <td align="left" valign="top">&nbsp;</td>
      <td align="left" valign="top">&nbsp;</td>
    </tr>
    <tr>
      <td colspan="3">&nbsp;
      <%
      	//javax.servlet.jsp.jspException
      	Throwable t = (Throwable) request.getAttribute("org.apache.struts.action.EXCEPTION");
      	if (t == null)
      		t = (Throwable) request.getAttribute("javax.servlet.jsp.jspException");
      	if (t != null)
      	{
      	while (t.getCause() != null)
      		t = t.getCause();
      %>
      <pre><%= t.toString() %>
      <%
      	java.io.StringWriter sw = new java.io.StringWriter();
      	t.printStackTrace(new java.io.PrintWriter(sw));
      	out.write(sw.toString());
      	}
      %></pre>
      </td>
    </tr>
    <tr>
      <td colspan="3">&nbsp;</td>
    </tr>
    <tr>
      <td colspan="3" align="center"><input type="button" onClick="history.back()" value="Retour"></td>
    </tr>
</table>
</body>
</html>
